VideoDeviceService

Service provides for the APIs for controlling camera and self video Ensure camera permissions are granted to have video experience

Types

Link copied to clipboard

Represents different states of camera capture request results.

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class VideoDeviceState

Represents a video device state.

Properties

Link copied to clipboard
val currentVideoDevice: ObservableValueWithOptional<VideoDevice>

ObservableValue that provides information about the current VideoDevice

Link copied to clipboard

ObservableValue that provides for VideoDeviceState

Link copied to clipboard
val is720pVideoCaptureEnabled: ObservableVariable<Boolean>

ObservableValue that indicates whether 720p capture is enabled or not.

Link copied to clipboard
val is720pVideoReceiveEnabled: ObservableValueWithOptional<Boolean>

ObservableValue that indicates whether 720p receive is enabled or not.

Link copied to clipboard

Provides for self video. Needs Camera android.Manifest.permission

Link copied to clipboard
val videoDevices: ObservableValueWithOptional<List<VideoDevice>>

ObservableValue that updates dynamically whenever a new VideoDevice is added or removed

Functions

Link copied to clipboard

Register for camera torch mode events to be notified whenever there is a changes in the mode.

Link copied to clipboard
fun selectVideoDevice(selectedDevice: VideoDevice)

Select a device from the current available set of VideoDevices

Link copied to clipboard

Starts sending video feed in 720p

Link copied to clipboard

Start receiving main stage participant's video feed in 720p in speaker or people view. Please refer the documentation to see the various video resolutions in Gallery View.

Link copied to clipboard

Sets repeating capture request on the current camera session. This internally will call CameraCaptureSession.setRepeatingRequest with the preview builder's key value pair. This API will be useful to control camera zoom, exposure or any other capture requests as provided by the framework at CaptureRequest.Key

Link copied to clipboard
fun setTorchMode(videoDevice: VideoDevice, enabled: Boolean): Boolean

Set the flash unit's torch mode of the given camera ID. Note : Some of the devices need the torch supported camera device to be open for the torch to be turned ON.

Link copied to clipboard

Unregister / Remove a previously-added callback; the callback will no longer receive torch mode status callbacks.